Skip to content

Conversation

@agocke
Copy link
Member

@agocke agocke commented Oct 21, 2021

Still seeing occasional failure in Alpine
(https://dev.azure.com/dnceng/public/_build/results?buildId=1434759) so
raising the retry time.

Still seeing occasional failure in Alpine
(https://dev.azure.com/dnceng/public/_build/results?buildId=1434759) so
raising the retry time.
@agocke agocke requested a review from VSadov October 21, 2021 21:26
@ghost
Copy link

ghost commented Oct 21, 2021

I couldn't figure out the best area label to add to this PR. If you have write-permissions please help me learn by adding exactly one area label.

@agocke
Copy link
Member Author

agocke commented Oct 25, 2021

ping @VSadov for review

// 10 ms is short, but the race we're trying to avoid is in-between
// "fork" and "exec", so it should be fast
Thread.Sleep(10);
Thread.Sleep(50);
Copy link
Member

@VSadov VSadov Oct 25, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Now if we wait, we would wait at least 50ms. I think something like Sleep(i * 20) and limiting i < 4 could have better balance between common quick case and if needed a longer wait.

The nice part is that the fist iteration would be Sleep(0), which works like a machine-wide Yield, but without minimum wait.

Copy link
Member

@VSadov VSadov left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, but I think scaling the back-off wait would allow us to wait longer in rare unfortunate cases and thus reduce chances that we will need to look at this again.

@agocke agocke merged commit 6c09b7b into dotnet:main Oct 26, 2021
@agocke agocke deleted the up-retry-time branch October 26, 2021 05:00
@ghost ghost locked as resolved and limited conversation to collaborators Nov 25, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants